﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="order_total_wxpay.aspx.cs" Inherits="MxWeiXinPF.Web.admin.order.order_total_wxpay" %>

<%@ Import Namespace="MxWeiXinPF.Common" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>订单统计</title>
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../../scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
    <script type="text/javascript" src="../js/layout.js"></script>
    <script type="text/javascript" src="../../scripts/datepicker/WdatePicker.js"></script>
    <link href="../../css/pagination.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
            <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <span>订单统计</span>
        </div>
        <!--/导航栏-->

        <!--工具栏-->
        <div class="toolbar-wrap">
            <div id="floatHead" class="toolbar">
                <div class="l-list">

                    <div class="menu-list">

                        <div class="rule-single-select">
                            <asp:DropDownList ID="ddlShops" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlShops_SelectedIndexChanged"></asp:DropDownList>
                        </div>
                    </div>
                    <div style="display: inline">
                    </div>
                </div>
                <div class="l-list" style="float: left">
                    <asp:Label ID="Label1" Width="20px" runat="server" CssClass="keyword">从</asp:Label>
                    <asp:TextBox ID="txtStart" runat="server" CssClass="input date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="/^\s*$|^\d{4}\-\d{1,2}\-\d{1,2}$/" errormsg="请选择正确的日期" sucmsg=" " />
                    <asp:Label ID="Label2" Width="20px" runat="server" CssClass="keyword">到</asp:Label>
                    <asp:TextBox ID="txtEnd" runat="server" CssClass="input date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="/^\s*$|^\d{4}\-\d{1,2}\-\d{1,2}$/" errormsg="请选择正确的日期" sucmsg=" " />

                    &nbsp;
            <asp:LinkButton ID="lbtnSearch" runat="server" OnClick="btnSearch_Click">查询</asp:LinkButton>
                    <asp:LinkButton ID="lbtnExport" runat="server"
                        OnClick="lbtnExport_Click">导出商品</asp:LinkButton>
                </div>
                <div class="r-list">
                    <span>总金额:<asp:Label Width="150px" runat="server" ID="lbSum" Text=""></asp:Label></span>
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>
                        <th align="left" width="12%">订单号</th>
                        <th align="left" width="8%">下单时间</th>
                        <th align="left" width="8%">店铺名称</th>
                        <th align="left" width="12%">货号</th>
                        <th align="left" width="10%">商品名称</th>
                        <th align="left" width="10%">规格</th>
                        <th align="left" width="10%">厂家</th>
                        <th align="left" width="10%">成本价</th>
                        <th align="left" width="10%">市场价</th>
                        <th align="left" width="10%">销售价</th>
                        <th align="left" width="10%">数量</th>
                        <th width="10%">金额</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>

                    <td><%#Eval("order_no")%></td>
                    <td><%#string.Format("{0:g}",Eval("add_time"))%></td>
                    <td><%#Eval("shopName") %></td>
                    <td><%#Eval("sku") %></td>
                    <td><%#Eval("goods_title") %></td>
                    <td><%#Eval("spec") %></td>
                    <td><%#Eval("Factory") %></td>
                    <td><%#Eval("costprice") %></td>
                    <td><%#Eval("market_price") %></td>
                    <td><%#Eval("sale_price") %></td>
                    <td><%#Eval("quantity") %></td>
                    <td align="center"><%#Eval("sumprice") %></td>

                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <tr>
                    <%#rptList.Items.Count == 0 ? "<td align=\"center\" colspan=\"9\">暂无记录</td>" : ""%>
                </tr>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/列表-->

        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>
</html>
